package cn.com.goldhs.architecture.util;

import org.neo4j.graphdb.PropertyContainer;

public class ContainerWrapperWithName<T extends PropertyContainer> extends
		ContainerWrapper<T> {

	public final static String NAME = "Name";

	public ContainerWrapperWithName(T container) {
		super(container);
	}

	public ContainerWrapperWithName(T container, String name) {
		super(container);
		setName(name);
	}

	public void setName(String name) {
		getUnderlyingContainer().setProperty(NAME, name);
	}

	public String getName() {
		return (String) getUnderlyingContainer().getProperty(NAME);
	}

}
